import request from '@/util/request.js';

/**
 * @description 查询房屋信息
 * @param {Object} data
 */
export function getFwInfoApi(data) {
	return request({
		url: '/fw/applet/queryFwInfoByUserNameAndIdCard',
		method: 'GET',
		data
	})
}
/**
 * @description 人脸识别
 * @param {Object} data
 */
export function getFaceResultByVerifyResult(data) {
	return request({
		url: '/user/getFaceResultByVerifyResult',
		method: 'POST',
		data
	})
}
/**
 * @description 获取验证码
 * @param {Object} data
 */
export function getCaptchaApi(data) {
	return request({
		url: '/user/sendMobileSMSVerificationCode',
		method: 'GET',
		data
	})
}
/**
 * @description 房屋绑定手机号
 * @param {Object} data
 */
export function saveUserFwJoin(data) {
	return request({
		url: '/userFwJoin/applet/saveUserFwJoin',
		method: 'POST',
		data
	})
}
/**
 * @description 查询承租人信息
 * @param {Object} data
 */
export function getTenantInformation(data) {
	return request({
		url: '/userFwJoin/applet/getLoginUserFwJoinYonghuInfo',
		method: 'GET',
		data
	})
}
/**
 * @description 查询房屋信息
 */
export function getHousingInformation() {
	return request({
		url: '/userFwJoin/applet/getLoginUserFwJoin',
		method: 'GET'
	})
}

/**
 * @description 获取疑义电话
 */
export function getSuspiciousPhone(data) {
	return request({
		url: '/sysDic/queryDicByType',
		method: 'GET',
		data
	})
}